IModel.FindOwnerByClass method ¶
Namespace: NextDesign.Core
Description¶
Gets the first owning instance of the specified class that holds this instance.
Follows the instance owning this instance in the parent direction and returns the first instance of the specified class found. If no matching instance is found after searching up to the top-level parent element, null is returned.
If the class specified as the class name cannot be found, null is returned. Also, when there is more than one matching class when making a fuzzy match, the first instance of the found class is returned.
argument¶
Name | Type | Description |
---|---|---|
className | string | Class Name Specify the class name or fully qualified name. If null or an empty string is specified, the return value of this method will be null. |
fuzzy | bool | className argument as the name of the class instead of the fully qualified name. If False, evaluates as the class whose fully qualified name matches className. If True, evaluate as if the class whose class name matches className is specified. The default value is True. |